package com.tianhao.shell.domain;

import lombok.Data;

import java.util.List;

/**
 * @ClassName: TestDomain
 * @Description: 接收模块名称实体
 * @author: tianhao.luo@hand-china.com
 * @date: 2020/11/4  11:23
 */
@Data
public class ModelDomain {
    /**
     * 存放模块
     */
    private List<String> model;
    /**
     * 存放地址
     */
    private String path;
    /**
     * mysql用户名
     */
    private String mysqlName;
    /**
     * mysql密码
     */
    private String mysqlPassword;
    /**
     * mysqlip及端口
     */
    private String mysqlIpAndPort;
    /**
     * redis ip
     */
    private String redisHost;
    /**
     * redis 端口
     */
    private String redisPort;
    /**
     * redis 指定仓库
     */
    private String redisSchema;
    /**
     * redis 密码
     */
    private String redisPassword;

    public void trim(){
        this.path=path.trim();
        this.mysqlName=mysqlName.trim();
        this.mysqlPassword=mysqlPassword.trim();
        this.mysqlIpAndPort=mysqlIpAndPort.trim();
        this.redisHost=redisHost.trim();
        this.redisPort=redisPort.trim();
        this.redisSchema=redisSchema.trim();
        this.redisPassword=redisPassword.trim();
    }
}
